.my-button {  
  background-color: transparent;  
  border: solid;  
  cursor: pointer;  
  border-width: 1px;
  font-size: 14px;
  border-color: #a90f14;
}  
  
.my-button:hover {  
  background-color: #a90f14; 
  color: white; 
} 

.icon-button:hover {  
  border: solid;
  border-width: 1px;
  border-color: sky#a90f14;
} 

.ant-table-thead .ant-table-cell  {  
  background-color: #ececec; /* 选中文本的颜色 */  
  font-size: 14px;
  font-weight: 400;

}

/* 新布局样式 - 优化后的顶部导航栏 */
.mainpage-header-unified {
  height: 64px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  border-bottom: 1px solid #e8e8e8;
}

.mainpage-logo {
  display: flex;
  align-items: center;
  color: #333333;
  font-size: 18px;
  font-weight: 400;
  min-width: 200px;
  flex-shrink: 0;
}

.mainpage-logo img {
  height: 70px;
  width: auto;
  margin-right: 12px;
}

.mainpage-primary-menu-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
  margin: 0 20px;
}

.mainpage-primary-menu-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mainpage-primary-menu-scroll::-webkit-scrollbar {
  display: none;
}

.mainpage-primary-menu-item {
  min-width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666666;
  font-weight: 400;
  background: transparent;
  border-radius: 6px;
  margin: 0 4px;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  padding: 4px 8px;
  box-sizing: border-box;
}

.mainpage-primary-menu-item:hover {
  background: rgba(24,144,255,0.08) !important;
  color: #a90f14 !important;
  transform: translateY(-1px);
}

.mainpage-primary-menu-item.selected {
  color: #a90f14 !important;
  background: rgba(24,144,255,0.1) !important;
  font-weight: 600;
}

.mainpage-primary-menu-item.selected .menu-icon {
  color: #a90f14 !important;
}

.mainpage-primary-menu-item.selected .menu-label {
  color: #a90f14 !important;
}

.mainpage-user-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.mainpage-user-area .ant-space:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}

.mainpage-user-area .ant-btn:hover {
  background: rgba(0,0,0,0.05) !important;
  color: #a90f14 !important;
}

/* 菜单项子元素样式 */
.mainpage-primary-menu-item .menu-icon {
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
  opacity: 0.85;
  transition: all 0.2s;
}

.mainpage-primary-menu-item.selected .menu-icon {
  opacity: 1;
}

/* 强制SVG图标使用currentColor - 解决部分图标颜色不受控的问题 */
.mainpage-primary-menu-item .menu-icon svg {
  fill: currentColor !important;
  color: inherit !important;
}

.mainpage-primary-menu-item .menu-icon svg path {
  fill: currentColor !important;
}

.mainpage-primary-menu-item .menu-icon svg circle {
  fill: currentColor !important;
}

.mainpage-primary-menu-item .menu-icon svg rect {
  fill: currentColor !important;
}

.mainpage-primary-menu-item .menu-icon svg polygon {
  fill: currentColor !important;
}

/* 确保IconFont图标也能被控制 */
.mainpage-primary-menu-item .menu-icon .anticon {
  color: inherit !important;
}

.mainpage-primary-menu-item .menu-icon .anticon svg {
  fill: currentColor !important;
}

.mainpage-primary-menu-item .menu-icon .anticon svg path {
  fill: currentColor !important;
}

/* 悬停状态下的图标颜色 */
.mainpage-primary-menu-item:hover .menu-icon {
  color: #a90f14 !important;
}

.mainpage-primary-menu-item:hover .menu-icon svg,
.mainpage-primary-menu-item:hover .menu-icon .anticon {
  color: #a90f14 !important;
}

/* 选中状态下的图标颜色 */
.mainpage-primary-menu-item.selected .menu-icon {
  color: #a90f14 !important;
}

.mainpage-primary-menu-item.selected .menu-icon svg,
.mainpage-primary-menu-item.selected .menu-icon .anticon {
  color: #a90f14 !important;
}

.mainpage-primary-menu-item .menu-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  transition: all 0.2s;
}

.mainpage-primary-menu-item .menu-indicator {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #a90f14;
  border-radius: 2px;
}

/* 用户区域样式 */
.mainpage-user-area .notification-btn {
  color: #666666;
  border: none;
  background: transparent;
}

.mainpage-user-area .user-info {
  cursor: pointer;
  color: #333333;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.mainpage-user-area .user-info span {
  font-size: 14px;
}

.mainpage-sidebar {
  width: 250px;
  background-color: #f0f2f5;
  border-right: 1px solid #d9d9d9;
  transition: width 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mainpage-sidebar.collapsed {
  width: 80px;
}

.mainpage-sidebar-header {
  padding: 14px;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mainpage-sidebar-content {
  flex: 1;
  overflow: auto;
}

.mainpage-sidebar-collapsed-menu {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.mainpage-sidebar-collapsed-menu .ant-dropdown-trigger {
  width: 100%;
}

.mainpage-sidebar-collapsed-menu .ant-btn {
  transition: all 0.3s ease;
}

.mainpage-sidebar-collapsed-menu .ant-btn:hover {
  background-color: #e6f7ff !important;
  border-color: #1890ff !important;
  color: #1890ff !important;
}

/* 折叠状态下下拉菜单的样式优化 */
.mainpage-sidebar-collapsed-menu .ant-dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  min-width: 280px !important;
  max-width: 350px !important;
}

.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-item {
  padding: 8px 12px;
  font-size: 13px;
  display: flex !important;
  align-items: center !important;
  min-height: 36px;
}

.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-submenu-title {
  padding: 8px 12px;
  font-size: 13px;
  display: flex !important;
  align-items: center !important;
  min-height: 36px;
}

.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-item .anticon,
.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-submenu-title .anticon {
  margin-right: 8px;
  flex-shrink: 0;
}

/* 折叠状态下不显示收藏图标，移除相关样式 */

.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-submenu {
  max-height: 300px;
  overflow-y: auto;
}

.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-submenu .ant-dropdown-menu {
  min-width: 280px !important;
  max-width: 350px !important;
}

/* 确保下拉菜单中的文本内容有足够空间 */
.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-item > span,
.mainpage-sidebar-collapsed-menu .ant-dropdown-menu-submenu-title > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainpage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mainpage-tabs-container {
  background-color: #f0f2f5;
  border-bottom: 1px solid #d9d9d9;
  padding: 0 14px;
}

.mainpage-page-content {
  flex: 1;
  background-color: #fff;
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* 通用页面样式修复 */
.page-content-fix {
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  overflow: auto !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  background-color: #f1f1f1 !important;
  font-size: 14px !important;
}

.page-content-fix .ant-table-wrapper {
  width: 100% !important;
}

.page-content-fix .ant-table-scroll {
  overflow: auto !important;
}

.ant-tabs-tab:hover {
  background-color: #e6f7ff;
}

.ant-dropdown{
  z-index: 1000 !important;
}

.ant-tree-select-dropdown{
  z-index: 997 !important;
}

.ant-select-dropdown{
  z-index: 997 !important;
}

.ant-tabs-tab{
  height: 32px !important;
}

/* .ant-modal-wrap{
  z-index: 1052 !important;
} */

.ant-upload-list-item-name{
  color: rgb(39, 63, 247);
}
.ant-upload-list-item-name:hover{
  color: rgb(12, 38, 241);
}

.ant-upload-list-text{
  display:inline-block;
  position: absolute;
  top: 0;
}
.ant-upload-select{
  position: sticky;
  top: 0;
  left: 0;
}
.ant-notification{
  z-index: 1060 !important;
}

.ant-table-wrapper .ant-table-container table > thead > tr > th,
.ant-table-wrapper .ant-table-container table > tbody > tr > td {
  border-color: #DDDDDD !important;
}

/* 响应式设计 - 优化后的顶部导航栏 */
@media (max-width: 1200px) {
  .mainpage-header-unified {
    height: 80px !important;
  }
  
  .mainpage-logo span {
    display: none;
  }
  
  .mainpage-primary-menu-item {
    min-width: 85px !important;
    height: 50px !important;
    padding: 4px 8px !important;
  }
  
  .mainpage-primary-menu-item .menu-icon {
    font-size: 20px !important;
    margin-bottom: 2px !important;
    color: #f7afa9 !important;
  }
  
  .mainpage-primary-menu-item .menu-label {
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  .mainpage-header-unified {
    padding: 0 12px !important;
    height: 70px !important;
  }
  
  .mainpage-logo {
    min-width: 180px !important;
  }
  
  .mainpage-logo span {
    display: none;
  }
  
  .mainpage-user-area {
    min-width: 120px !important;
  }
  
  .mainpage-primary-menu-container {
    margin: 0 12px !important;
  }
  
  .mainpage-primary-menu-item {
    min-width: 60px !important;
    height: 50px !important;
    padding: 4px 6px !important;
  }
  
  .mainpage-primary-menu-item .menu-icon {
    font-size: 24px !important;
    margin-bottom: 2px !important;
    color: #a02217 !important;
  }
  
  .mainpage-primary-menu-item .menu-label {
    font-size: 14px !important;
    color: #a02217 !important;
  }
  
  .mainpage-sidebar {
    width: 60px;
  }
  
  .mainpage-sidebar.collapsed {
    width: 60px;
  }
  
  .mainpage-sidebar-header {
    padding: 8px;
  }
}

/* 自定义滚动条样式 */
.mainpage-sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.mainpage-sidebar-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mainpage-sidebar-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.mainpage-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 菜单项样式优化 */
.mainpage-sidebar .ant-menu-item {
  margin: 0;
  border-radius: 0;
}

.mainpage-sidebar .ant-menu-item:hover {
  background-color: #ffe8e6;
}

.mainpage-sidebar .ant-menu-item-selected {
  background-color: #a90f14;
  color: #666;
}

.mainpage-sidebar .ant-menu-item-selected:hover {
  background-color: #a90f14;
}

/* 收藏夹样式 */
.mainpage-sidebar .ant-menu-submenu-title {
  color: #666;
  font-weight: 400;
}

.mainpage-sidebar .ant-menu-submenu-title:hover {
  color: #a90f14;
}

/* 标签页样式优化 */
.mainpage-tabs .ant-tabs-tab {
  background-color: #f0f2f5;
  border: 1px solid #d9d9d9;
  border-bottom: none;
  margin-right: 2px;
}

.mainpage-tabs .ant-tabs-tab-active {
  background-color: #fff;
  border-color: #a90f14;
}

.mainpage-tabs .ant-tabs-content-holder {
  display: none;
}

/* 用户头像下拉菜单样式 */
.ant-dropdown-menu-item {
  padding: 8px 14px;
}

.ant-dropdown-menu-item:hover {
  background-color: #f5f5f5;
}

/* 消息通知样式 */
.ant-badge {
  cursor: pointer;
}

.ant-badge .ant-badge-count {
  background-color: #ff4d4f;
  color: white;
  box-shadow: 0 0 0 1px #fff;
}

/* 页面容器统一样式 - 响应式适配 */
.page-content-unified,
.page-wrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  height: 100% !important;
  width: 100% !important;
  overflow: auto !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  background-color: #f5f5f5 !important;
  min-height: 100% !important;
}

/* 基础响应式字体大小 */
:root {
  --base-font-size: 14px;
  --viewport-width: 100vw;
  --viewport-height: 100vh;
  --device-pixel-ratio: 1;
}

/* 表格响应式适配 */
.page-content-unified .ant-table-wrapper,
.page-wrapper .ant-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

.page-content-unified .ant-table,
.page-wrapper .ant-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 800px !important;
}

.page-content-unified .ant-table-thead > tr > th,
.page-wrapper .ant-table-thead > tr > th {
  white-space: nowrap !important;
  font-size: var(--base-font-size) !important;
}

.page-content-unified .ant-table-tbody > tr > td,
.page-wrapper .ant-table-tbody > tr > td {
  font-size: var(--base-font-size) !important;
}

/* 表单响应式适配 */
.page-content-unified .ant-form,
.page-wrapper .ant-form {
  width: 100% !important;
  max-width: 100% !important;
}

.page-content-unified .ant-form-item,
.page-wrapper .ant-form-item {
  margin-bottom: 14px !important;
}

.page-content-unified .ant-form-item-label,
.page-wrapper .ant-form-item-label {
  font-size: var(--base-font-size) !important;
}

/* 卡片响应式适配 */
.page-content-unified .ant-card,
.page-wrapper .ant-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 14px !important;
}

.page-content-unified .ant-card-head-title,
.page-wrapper .ant-card-head-title {
  font-size: calc(var(--base-font-size) + 2px) !important;
}

/* 按钮组响应式适配 */
.page-content-unified .ant-btn-group,
.page-wrapper .ant-btn-group {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.page-content-unified .ant-btn,
.page-wrapper .ant-btn {
  font-size: var(--base-font-size) !important;
  margin-right: 8px !important;
  margin-bottom: 8px !important;
}

/* 输入框响应式适配 */
.page-content-unified .ant-input,
.page-wrapper .ant-input,
.page-content-unified .ant-select,
.page-wrapper .ant-select {
  max-width: 100% !important;
  font-size: var(--base-font-size) !important;
}

/* 分页器响应式适配 */
.page-content-unified .ant-pagination,
.page-wrapper .ant-pagination {
  text-align: center !important;
  margin-top: 14px !important;
}

.page-content-unified .ant-pagination-item,
.page-wrapper .ant-pagination-item {
  font-size: var(--base-font-size) !important;
}

/* 小屏幕适配 (1366px以下) */
@media (max-width: 1366px) {
  :root {
    --base-font-size: 12px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 12px !important;
  }
  
  .page-content-unified .ant-table,
  .page-wrapper .ant-table {
    font-size: 12px !important;
    min-width: 700px !important;
  }
  
  .page-content-unified .ant-btn,
  .page-wrapper .ant-btn {
    font-size: 12px !important;
    padding: 4px 8px !important;
    height: 28px !important;
  }
  
  .page-content-unified .ant-form-item,
  .page-wrapper .ant-form-item {
    margin-bottom: 12px !important;
  }
  
  .page-content-unified .ant-card,
  .page-wrapper .ant-card {
    margin-bottom: 12px !important;
  }
}

/* 中等屏幕适配 (1366px-1920px) */
@media (min-width: 1366px) and (max-width: 1920px) {
  :root {
    --base-font-size: 14px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 14px !important;
  }
}

/* 大屏幕适配 (1920px-2560px) */
@media (min-width: 1920px) and (max-width: 2560px) {
  :root {
    --base-font-size: 15px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 18px !important;
  }
}

/* 超大屏幕适配 (2560px以上) */
@media (min-width: 2560px) {
  :root {
    --base-font-size: 14px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 24px !important;
  }
  
  .page-content-unified .ant-table,
  .page-wrapper .ant-table {
    min-width: 1000px !important;
  }
  
  .page-content-unified .ant-btn,
  .page-wrapper .ant-btn {
    height: 36px !important;
    padding: 6px 12px !important;
  }
}

/* 高DPI屏幕适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .page-content-unified,
  .page-wrapper {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
  }
  
  .page-content-unified .ant-table,
  .page-wrapper .ant-table {
    border-width: 0.5px !important;
  }
}

/* 移动端适配 (768px以下) */
@media (max-width: 768px) {
  :root {
    --base-font-size: 11px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 8px !important;
  }
  
  .page-content-unified .ant-table,
  .page-wrapper .ant-table {
    font-size: 11px !important;
    min-width: 600px !important;
  }
  
  .page-content-unified .ant-btn,
  .page-wrapper .ant-btn {
    font-size: 11px !important;
    padding: 2px 6px !important;
    height: 24px !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
  }
  
  .page-content-unified .ant-form-item,
  .page-wrapper .ant-form-item {
    margin-bottom: 8px !important;
  }
  
  .page-content-unified .ant-card,
  .page-wrapper .ant-card {
    margin-bottom: 8px !important;
  }
}

/* 平板端适配 (768px-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --base-font-size: 13px;
  }
  
  .page-content-unified,
  .page-wrapper {
    padding: 10px !important;
  }
  
  .page-content-unified .ant-table,
  .page-wrapper .ant-table {
    min-width: 650px !important;
  }
}

/* 缩放比例适配 */
@media (min-resolution: 120dpi) and (max-resolution: 144dpi) {
  .page-content-unified,
  .page-wrapper {
    zoom: 0.9 !important;
  }
}

@media (min-resolution: 144dpi) and (max-resolution: 192dpi) {
  .page-content-unified,
  .page-wrapper {
    zoom: 0.8 !important;
  }
}

/* 特殊组件适配 */
.page-content-unified .ant-modal,
.page-wrapper .ant-modal {
  max-width: 90vw !important;
}

.page-content-unified .ant-drawer,
.page-wrapper .ant-drawer {
  max-width: 90vw !important;
}

.page-content-unified .ant-popover,
.page-wrapper .ant-popover {
  max-width: 400px !important;
}

/* 滚动条样式统一 */
.page-content-unified::-webkit-scrollbar,
.page-wrapper::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.page-content-unified::-webkit-scrollbar-track,
.page-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 4px !important;
}

.page-content-unified::-webkit-scrollbar-thumb,
.page-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1 !important;
  border-radius: 4px !important;
}

.page-content-unified::-webkit-scrollbar-thumb:hover,
.page-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8 !important;
}

/* 打印样式适配 */
@media print {
  .page-content-unified,
  .page-wrapper {
    padding: 0 !important;
    background-color: white !important;
    box-shadow: none !important;
  }
  
  .page-content-unified .ant-btn,
  .page-wrapper .ant-btn {
    display: none !important;
  }
}
